package com.quantice.Manager;

import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class TabHostManager {
	private TabHost th;
	private TabSpec specs;

	public TabHostManager(TabHost viewTabHost) {
		th = viewTabHost;
		th.setup();
	}

	public void addTab(String tag, int idcontent, String indicator) {
		specs = th.newTabSpec(tag);
		specs.setContent(idcontent);
		specs.setIndicator(indicator);
		th.addTab(specs);
	}
}
